﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterCustomer.master" AutoEventWireup="true" CodeBehind="ShowOrder.aspx.cs" Inherits="UdrinkWater_Project.ShowOrder" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
        HeaderText="รายการสินค้า" Width="100%">
        <HeaderStyle Font-Size="Medium" HorizontalAlign="Left" />
        <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
    <dx:ASPxDataView ID="DataViewGoods" runat="server" Height="100%" 
                    PagerAlign="Justify" Width="100%" 
        DataSourceID="SqlShowDataCustomer">
                    <ItemTemplate>
             <table style="margin: 0 auto;">
                <tr>
                    <td colspan="2" align="center" style="text-align: center">
                        <dx:ASPxImage ID="imgCover" runat="server" ImageUrl='<%# Eval("Image_Path") %>' Width="150px" Height="150px" ShowLoadingImage="true" /> 
                    </td>
                </tr>
                 <tr>
                    <td style="text-align: right"><b>รหัสสินค้า:</b></td>
                    <td><dx:ASPxLabel ID="lblName" runat="server"  Text='<%# Eval("Product_ID") %>' /></td>
                </tr>
                 <tr>
                    <td style="text-align: right"><b>ชื่อสินค้า:</b></td>
                    <td><dx:ASPxLabel ID="lblAddress" runat="server" Text='<%# Eval("Product_name") %>' /></td>
                </tr>
                 <tr>
                    <td style="text-align: right"><b>ราคาขาย:</b></td>
                    <td><dx:ASPxLabel ID="lblPrice" runat="server" Text='<%# Eval("Price") %>' /></td>
                </tr>
                 <tr>
                    <td style="text-align: right"><b>หน่วยการขาย:</b></td>
                    <td><dx:ASPxLabel ID="lb_Unit" runat="server" Text='<%# Eval("Unit_Name") %>' /></td>
                </tr>
            </table>
        </ItemTemplate>
                </dx:ASPxDataView>
                <asp:SqlDataSource ID="SqlShowDataCustomer" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:DB_Udrink %>" 
                    
                    
                    
        
        SelectCommand="SELECT TB_Product.Product_ID, TB_Product.Product_name, TB_Product.Price, TB_Product.In_Stock, TB_Product.Image_Path, TB_Unit_Category.Unit_Name FROM TB_Product LEFT OUTER JOIN TB_Unit_Category ON TB_Product.Unit = TB_Unit_Category.Unit_ID"></asp:SqlDataSource>
</dx:PanelContent>
</PanelCollection>
    </dx:ASPxRoundPanel>
</asp:Content>
